Skip to content

fix for fish shell command concatenation #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

fix for fish shell command concatenation #132

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 30, 2018

In fish shell the operator used to string subsequent commands together is not the same as bash. In bash it is && but in fish it is ; and. This patch makes use of the $SHELL environment variable to check if fish is being used.

I would prefer a method to check which shell vim is currently running in but had no luck and was forced to use the user's preferred shell. At least this will default to using the existing bash syntax and Fish shell users may set the $SHELL environment variable if not set.

@ghost
Copy link
Author

ghost commented Mar 30, 2018

I just noticed there is already a similar pull request #126, this is slightly more elegant as it checks for a partial match in the shell environment variable instead of assuming a fixed depth path.

@ghost ghost closed this Jun 27, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants